package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:49:55
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceResourceBusinessPackageRelateBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate workspaceResourceBusinessPackageRelate;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceResourceBusinessPackageRelate);
	}
	
	static{
				
																																						
				
																																																
				
																						
		mappedDaoFields.put("businessDomainId",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId);
												
				
																
				
																																						
				
																																																
				
																																
				
						
		mappedDaoFields.put("businessDomainName",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName);
												
				
																																						
				
																																																
				
						
		mappedDaoFields.put("businessPackageName",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName);
																												
				
																
				
																
		mappedDaoFields.put("businessPcakageId",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId);
		
																														
				
																																																
				
																																
				
																
				
																				
		mappedDaoFields.put("description",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.Description);
		
																										
				
																																																
				
																																
				
																
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.Id);
		
																																		
				
																																																
				
																																
				
																
				
																								
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.Status);
		
																						
				
																																																
				
																																
				
																
				
																												
		mappedDaoFields.put("workspaceResourceId",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId);
		
																		
				
																																																
				
																																
				
																
				
																																						
				
																																																
				
														
		mappedDaoFields.put("businessPackageType",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType);
																				
				
																
				
																																						
				
										
		mappedDaoFields.put("resourceName",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.ResourceName);
																																								
				
																																
				
																
				
																																						
				
																		
		mappedDaoFields.put("resourceType",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.ResourceType);
																																
				
																																
				
																
				
																																						
				
																										
		mappedDaoFields.put("resourcePath",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath);
																								
				
																																
				
																
				
																																						
				
																																		
		mappedDaoFields.put("workspaceId",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId);
																
				
																																
				
																
				
																																						
				
																																										
		mappedDaoFields.put("resourceOrderIndex",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex);
								
				
																																
				
																
				
																																
		mappedDaoFields.put("lastGenCodeTime",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime);
		
														
				
																																																
				
																																
				
																
				
																																				
		mappedDaoFields.put("submitterId",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId);
		
										
				
																																																
				
																																
				
																
				
																																								
		mappedDaoFields.put("submitterName",com.ourteam.workspace.dao.IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName);
		
						
				
																																																
				
																																
				
																
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceResourceBusinessPackageRelateBean() {
		super();
	    		
		this.workspaceResourceBusinessPackageRelate = new com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate();
                
	}
	
		
	public WorkspaceResourceBusinessPackageRelateBean(com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate workspaceResourceBusinessPackageRelate) {
		super();
	
		this.workspaceResourceBusinessPackageRelate = workspaceResourceBusinessPackageRelate;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate convertToWorkspaceResourceBusinessPackageRelate(){
		return this.workspaceResourceBusinessPackageRelate;
	}
	
	public com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate convertTo(){
		return this.workspaceResourceBusinessPackageRelate;
	}
	
			
		
																		
			
																									
			
											
			
		
	/**
	 * Get businessDomainId
	 * 
	 * @return long
	 */
	public long getBusinessDomainId(){
		
		return (long) this.workspaceResourceBusinessPackageRelate.getBusinessDomainId();
			
	}
	
							
			
									
		
		
																		
			
																									
			
																	
			
			
			
		
	/**
	 * Get businessDomainName
	 * 
	 * @return String
	 */
	public String getBusinessDomainName(){
		
		return (String) this.workspaceResourceBusinessPackageRelate.getBusinessDomainName();
			
	}
	
							
		
		
																		
			
																									
			
			
			
		
	/**
	 * Get businessPackageName
	 * 
	 * @return String
	 */
	public String getBusinessPackageName(){
		
		return (String) this.workspaceResourceBusinessPackageRelate.getBusinessPackageName();
			
	}
	
															
			
									
		
		
					
			
		
	/**
	 * Get businessPcakageId
	 * 
	 * @return long
	 */
	public long getBusinessPcakageId(){
		return (long) this.workspaceResourceBusinessPackageRelate.getBusinessPcakageId();
	}
	
	/**
	 * Set businessPcakageId
	 * 
	 * @parameter long
	 */
	public void setBusinessPcakageId(long businessPcakageId){
		
		this.workspaceResourceBusinessPackageRelate.setBusinessPcakageId(businessPcakageId);
	}
		
															
			
																									
			
																	
			
									
		
		
							
			
		
	/**
	 * Get description
	 * 
	 * @return String
	 */
	public String getDescription(){
		return (String) this.workspaceResourceBusinessPackageRelate.getDescription();
	}
	
	/**
	 * Set description
	 * 
	 * @parameter String
	 */
	public void setDescription(String description){
		
		this.workspaceResourceBusinessPackageRelate.setDescription(description);
	}
		
													
			
																									
			
																	
			
									
		
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceResourceBusinessPackageRelate.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceResourceBusinessPackageRelate.setId(id);
	}
		
																	
			
																									
			
																	
			
									
		
		
									
			
		
	/**
	 * Get status
	 * 
	 * @return Integer
	 */
	public Integer getStatus(){
		return (Integer) this.workspaceResourceBusinessPackageRelate.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter Integer
	 */
	public void setStatus(Integer status){
		
		this.workspaceResourceBusinessPackageRelate.setStatus(status);
	}
		
											
			
																									
			
																	
			
									
		
		
											
			
		
	/**
	 * Get workspaceResourceId
	 * 
	 * @return long
	 */
	public long getWorkspaceResourceId(){
		return (long) this.workspaceResourceBusinessPackageRelate.getWorkspaceResourceId();
	}
	
	/**
	 * Set workspaceResourceId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceResourceId(long workspaceResourceId){
		
		this.workspaceResourceBusinessPackageRelate.setWorkspaceResourceId(workspaceResourceId);
	}
		
									
			
																									
			
																	
			
									
		
		
																		
			
																									
			
							
			
		
	/**
	 * Get businessPackageType
	 * 
	 * @return String
	 */
	public String getBusinessPackageType(){
		
		return (String) this.workspaceResourceBusinessPackageRelate.getBusinessPackageType();
			
	}
	
											
			
									
		
		
																		
			
					
			
		
	/**
	 * Get resourceName
	 * 
	 * @return String
	 */
	public String getResourceName(){
		
		return (String) this.workspaceResourceBusinessPackageRelate.getResourceName();
			
	}
	
																					
			
																	
			
									
		
		
																		
			
									
			
		
	/**
	 * Get resourceType
	 * 
	 * @return String
	 */
	public String getResourceType(){
		
		return (String) this.workspaceResourceBusinessPackageRelate.getResourceType();
			
	}
	
																	
			
																	
			
									
		
		
																		
			
													
			
		
	/**
	 * Get resourcePath
	 * 
	 * @return String
	 */
	public String getResourcePath(){
		
		return (String) this.workspaceResourceBusinessPackageRelate.getResourcePath();
			
	}
	
													
			
																	
			
									
		
		
																		
			
																	
			
		
	/**
	 * Get workspaceId
	 * 
	 * @return long
	 */
	public long getWorkspaceId(){
		
		return (long) this.workspaceResourceBusinessPackageRelate.getWorkspaceId();
			
	}
	
									
			
																	
			
									
		
		
																		
			
																					
			
		
	/**
	 * Get resourceOrderIndex
	 * 
	 * @return int
	 */
	public int getResourceOrderIndex(){
		
		return (int) this.workspaceResourceBusinessPackageRelate.getResourceOrderIndex();
			
	}
	
					
			
																	
			
									
		
		
													
			
		
	/**
	 * Get lastGenCodeTime
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getLastGenCodeTime(){
		return (java.util.Date) this.workspaceResourceBusinessPackageRelate.getLastGenCodeTime();
	}
	
	/**
	 * Set lastGenCodeTime
	 * 
	 * @parameter java.util.Date
	 */
	public void setLastGenCodeTime(java.util.Date lastGenCodeTime){
		
		this.workspaceResourceBusinessPackageRelate.setLastGenCodeTime(lastGenCodeTime);
	}
		
							
			
																									
			
																	
			
									
		
		
															
			
		
	/**
	 * Get submitterId
	 * 
	 * @return long
	 */
	public long getSubmitterId(){
		return (long) this.workspaceResourceBusinessPackageRelate.getSubmitterId();
	}
	
	/**
	 * Set submitterId
	 * 
	 * @parameter long
	 */
	public void setSubmitterId(long submitterId){
		
		this.workspaceResourceBusinessPackageRelate.setSubmitterId(submitterId);
	}
		
					
			
																									
			
																	
			
									
		
		
																	
			
		
	/**
	 * Get submitterName
	 * 
	 * @return String
	 */
	public String getSubmitterName(){
		return (String) this.workspaceResourceBusinessPackageRelate.getSubmitterName();
	}
	
	/**
	 * Set submitterName
	 * 
	 * @parameter String
	 */
	public void setSubmitterName(String submitterName){
		
		this.workspaceResourceBusinessPackageRelate.setSubmitterName(submitterName);
	}
		
			
			
																									
			
																	
			
									
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceResourceBusinessPackageRelateBean) == false) {
            return false;
        } // end if

        WorkspaceResourceBusinessPackageRelateBean other = (WorkspaceResourceBusinessPackageRelateBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate tempWorkspaceResourceBusinessPackageRelate = other.convertToWorkspaceResourceBusinessPackageRelate();
        
        if(tempWorkspaceResourceBusinessPackageRelate == null || this.workspaceResourceBusinessPackageRelate == null){
        	isEqual = false;
        }
        else if(tempWorkspaceResourceBusinessPackageRelate == this.workspaceResourceBusinessPackageRelate || tempWorkspaceResourceBusinessPackageRelate.equals(this.workspaceResourceBusinessPackageRelate) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceResourceBusinessPackageRelateBean[] toArray(com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate[] aWorkspaceResourceBusinessPackageRelates){
		
		return toArray(aWorkspaceResourceBusinessPackageRelates,null);
	}
	
	public static WorkspaceResourceBusinessPackageRelateBean[] toArray(com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate[] aWorkspaceResourceBusinessPackageRelates , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceResourceBusinessPackageRelates)){
		 	return new WorkspaceResourceBusinessPackageRelateBean[0];
		 }
		 
		 int length = aWorkspaceResourceBusinessPackageRelates.length;
		 
		 WorkspaceResourceBusinessPackageRelateBean[] beans = new WorkspaceResourceBusinessPackageRelateBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceResourceBusinessPackageRelateBean(aWorkspaceResourceBusinessPackageRelates[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceResourceBusinessPackageRelates[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}